package com.hongmeng.teamwork.service.impl;

import com.hongmeng.teamwork.entity.po.TeamworkUserTaskDirect;
import com.hongmeng.teamwork.mapper.TeamworkUserTaskDirectMapper;
import com.hongmeng.teamwork.service.ITeamworkUserTaskDirectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (HongmengTeamworkUserTaskDirect)表服务实现类
 *
 * @author makejava
 * @since 2023-11-18 10:52:51
 */
@Service("hongmengTeamworkUserTaskDirectService")
public class ITeamworkUserTaskDirectServiceImpl implements ITeamworkUserTaskDirectService {
    @Resource
    private TeamworkUserTaskDirectMapper teamworkUserTaskDirectMapper;

    @Override
    public List<TeamworkUserTaskDirect> queryByCondition(TeamworkUserTaskDirect teamworkUserTaskDirect) {
        return this.teamworkUserTaskDirectMapper.queryByCondition(teamworkUserTaskDirect);
    }

    /**
     * 新增数据
     *
     * @param teamworkUserTaskDirect 实例对象
     * @return 实例对象
     */
    @Override
    public boolean insert(TeamworkUserTaskDirect teamworkUserTaskDirect) {
        return this.teamworkUserTaskDirectMapper.insert(teamworkUserTaskDirect) > 0;
    }
}
